Routines (alphabetical) > Routines: G > GRIB Routines > GRIB_INDEX_GET

GRIB_INDEX_GET

The GRIB_INDEX_GET function returns the distinct key values contained in the index. The key must belong to the index.

Syntax

Result = GRIB_INDEX_GET(Gindex, Key [, /DOUBLE] [, /LONG] [, /STRING])

Return Value

Returns the distinct key values contained in Gindex.

If Gindex is undefined, an error message is returned.

Arguments

Gindex

A GRIB index created from a file. The index must have been created with Key.

Key

A case-sensitive string containing the key name to be searched.

Keywords

DOUBLE

Set this keyword if Key is explicitly defined as type DOUBLE or if the Key native type is DOUBLE.

LONG

Set this keyword if Key is explicitly defined as LONG if the Key native type is LONG.

STRING

Set this keyword if Key is explicitly defined as STRING or if the Key native type is STRING.

Examples

See GRIB_GET_VALUESfor a general example using the GRIB routines.

Version History

8.1

Introduced